function s = osz(sz)
% osz  - returns ones(size(svzar))
%
% FORMAT:       onesws = zsz(anyvar)
%
% Input fields:
%
%       anyvar      any variable
%
% Output fields
%
%       onesws      ones with size of input argument
%
% See also zsz

% Version:  v0.7f
% Build:    8110521
% Date:     Nov-05 2008, 9:00 PM CET
% Author:   Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% argument check
if nargin ~= 1
    error( ....
        'BVQXtools:BadArgument', ...
        'Function osz requires exactly one argument.' ...
    );
end

% create ones with correct size
s = ones(size(sz));
